package club.framework.web.base.entity;

import club.framework.web.base.util.DateFormatUtils;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by 念梓  on 2017/9/5.
 * Email:sunmch@163.com
 * author: 念梓
 * des:
 */
public class BaseEntity  implements Serializable{

    private int id;

    private long uid;

    private String name;

    private Date createTime;

    private Date updateTime;

    private String updateTimeStr;

    private int status; //状态 0：正常 1：删除

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getUpdateTimeStr() {
        return  DateFormatUtils.getFormatDate(this.getUpdateTime(),"yyyy-MM-dd HH:mm:ss");
    }


}
